package net.adetech.cjg.innerservice.mapper;


import net.adetech.cjg.innerservice.entity.Zd;
import net.adetech.cjg.innerservice.entity.Zdpc;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ZdpcDao {

    @Select("select * from CJG_ZDPC")
    List<Zdpc> getAllZdList();



    @Select("select * from CJG_ZDPC where pcip = #{pcip} or zdip = #{pcip}")
    Zdpc getZdpcByIp(@Param("pcip")String pcip);
}
